Skip to content

Add Copilot setup workflow for R package development#233

Merged
ms609 merged 3 commits intomainfrom
copilot/fix-3c8891b9-a507-44f4-92be-fae350c69239
Sep 8, 2025
Merged

Add Copilot setup workflow for R package development#233
ms609 merged 3 commits intomainfrom
copilot/fix-3c8891b9-a507-44f4-92be-fae350c69239

Conversation

Copy link
Contributor

Copilot AI commented Sep 8, 2025

This PR adds a .github/workflows/copilot-setup-steps.yml workflow to onboard the TreeTools repository for GitHub Copilot coding agent support.

What this enables

The workflow provides a complete development environment setup for Copilot agents working on TreeTools, including:

  • R environment: Latest R release with all TreeTools dependencies
  • System dependencies: LaTeX (texlive) for documentation, C++17 compiler for native code
  • Development tools: devtools, testthat, roxygen2, lintr, rcmdcheck
  • Package-specific setup: phangorn dependency with version constraints, CRAN-like environment variables

Technical details

The workflow is based on the existing R-CMD-check.yml but simplified for single-platform agent use:

  • Uses ubuntu-latest instead of matrix builds
  • Includes needs: check, coverage for comprehensive dependency resolution
  • Sets minimal permissions (contents: read)
  • Follows GitHub's copilot-setup-steps template requirements

Agent capabilities enabled

With this setup, Copilot agents can:

  • Build and check R packages (R CMD build, R CMD check)
  • Run the full test suite with testthat
  • Perform code linting with the existing .lintr configuration
  • Generate documentation with roxygen2
  • Install and manage dependencies automatically

The workflow triggers on manual dispatch and when the setup file is modified, allowing for easy validation and testing.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • r-lib.github.io
    • Triggering command: /usr/lib/R/bin/exec/R -s -e curl::curl_download("REDACTED","get-libgit2-linux.sh") (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: ms609 <1695515+ms609@users.noreply.github.com>
Copilot AI changed the title [WIP] Your task is to "onboard" this repository to Copilot coding agent by adding a .github/workflows/copilot-setup-steps.yml file within the repository. A copilot-setup-steps.yml file looks like a normal GitHub Actions workflow file, but must contain a si... Add Copilot setup workflow for R package development Sep 8, 2025
Copilot AI requested a review from ms609 September 8, 2025 09:43
@ms609 ms609 marked this pull request as ready for review September 8, 2025 09:43
@ms609 ms609 merged commit a853904 into main Sep 8, 2025
1 check passed
@ms609 ms609 deleted the copilot/fix-3c8891b9-a507-44f4-92be-fae350c69239 branch September 8, 2025 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants